import request from '@/utils/request'

// 查询列表
export function listPointDeductionConfig(query) {
  return request({
    url: '/pointDeductionConfig/pageData',
    method: 'get',
    params: query
  })
}

// 新增算力扣除
export function addPointDeductionConfig(data) {
  return request({
    url: '/pointDeductionConfig/add',
    method: 'post',
    data
  })
}

// 算力扣除详情
export function detailPointDeductionConfig(data) {
  return request({
    url: '/pointDeductionConfig/detail',
    method: 'get',
    params:data
  })
}

// 删除
export function deletePointDeductionConfig(data) {
  return request({
    url: '/pointDeductionConfig/del/'+data,
    method: 'delete',
  })
}
// 修改
export function updatePointDeductionConfig(data) {
  return request({
    url: '/pointDeductionConfig/update',
    method: 'post',
    data
  })
}
